From c2c7ddaf4c17124aa7dee362942c3224d557529e Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 15 Mar 2006 22:33:41 +0000 Subject: [PATCH] Add Info.plist from Claus Broch. --- gpsbabel/macgpsbabel/Info.plist | 28 ++++++++++++++++++++ gpsbabel/macgpsbabel/MacGPSBabel.applescript | 15 +++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 gpsbabel/macgpsbabel/Info.plist diff --git a/gpsbabel/macgpsbabel/Info.plist b/gpsbabel/macgpsbabel/Info.plist new file mode 100644 index 000000000..0b6ee7561 --- /dev/null +++ b/gpsbabel/macgpsbabel/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + MacGPSBabel + CFBundleIconFile + mgb.icns + CFBundleIdentifier + com.gpsbabel.MacGPSBabel + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + mGPS + CFBundleVersion + 1.2.8-beta20060219 + NSAppleScriptEnabled + YES + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/gpsbabel/macgpsbabel/MacGPSBabel.applescript b/gpsbabel/macgpsbabel/MacGPSBabel.applescript index 76d6c1204..a60412337 100644 --- a/gpsbabel/macgpsbabel/MacGPSBabel.applescript +++ b/gpsbabel/macgpsbabel/MacGPSBabel.applescript @@ -100,7 +100,8 @@ on will open theObject end will open -on will close theObject +-- to work around the NSReceiverEvaluationScriptError we need to use should close instead of will close +on should close theObject log "will close - " & name of theObject if theObject is window "SelectGPS" then -- store user defaults for this window @@ -112,7 +113,16 @@ on will close theObject -- unhide MacGPSBabel window set visible of window "MacGPSBabel" to true end if -end will close + + if theObject is window "filterWindow" then + set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters" + end if + + -- workarund NSReceiverEvaluationScriptError bug + set visible of theObject to false + return false + +end should close -- handler for the File>Open menu item @@ -728,6 +738,7 @@ on showFilters() set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters" end if end showFilters + -- create the filter code on applyFilters() set filterText to "" -- 2.30.2